package com.cyzy.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.dao.CourseCampus;
import com.cyzy.dao.UserRole;
import com.cyzy.pojo.Campus;
import com.cyzy.pojo.CourseCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseManageMapper {

    Page<CourseCampus> selectAllCourse(Page<CourseCampus> page, @Param("courseCampus") CourseCampus courseCampus);

    List<CourseCategory> selectAllCategory(CourseCategory courseCategory);

    int addCourse(CourseCampus courseCampus);

    int updateCourseStatus(
            @Param("courseId") long courseId,
            @Param("courseStatus") String courseStatus);

    List<CourseCampus> getCourse(CourseCampus courseCampus);

    int updateCourse(CourseCampus courseCampus);

    int deleteCourse(@Param("courseIds") List<Integer> courseIds);
}
